package com.capsulode.jdbc;

public interface SqlBuilder {
    String getSql();

    Object[] getParams();

    static DefaultSqlBuilder from(CharSequence sql, Object... params) {
        return new DefaultSqlBuilder(sql, params);
    }

    static SqlUpdate update(CharSequence tableName) {
        return new SqlUpdate(tableName);
    }

    static <T> SqlInsert<T> insert(CharSequence tableName) {
        return new SqlInsert<>(tableName);
    }
}
